﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Website.TaskSinhVienServices;

namespace Website.SinhVien
{
    public partial class TraCuuSinhVien : System.Web.UI.Page
    {
        SinhVienServicesSoapClient ws = new SinhVienServicesSoapClient();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button_Search_Click(object sender, EventArgs e)
        {
            SINH_VIEN seekSinhVien = new SINH_VIEN();
            SINH_VIEN[] foundSinhVien;

            seekSinhVien.MASOSINHVIEN = TextBox_MSSV.Text;
            seekSinhVien.HOTEN = TextBox_HoTen.Text;
            foundSinhVien =  ws.traCuuSinhVien(seekSinhVien);
            GridView_Result.DataSource = foundSinhVien;
            GridView_Result.DataBind();
        }
    }
}
